package cn.flexui.flexuiserver.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.util.Date;

/**
 * <p>
 * 会员与权益关系表
 * </p>
 *
 * @author apeto
 * @since 2024-09-22 10:50:52
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_member_rights")
@Schema(name = "UserMemberRights", description = "会员与权益关系表")
public class UserMemberRights extends BaseEntity<UserMemberRights> {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "会员卡ID")
    @TableField("member_card_id")
    private Long memberCardId;

    @Schema(description = "会员权益ID")
    @TableField("member_rights_id")
    private Long memberRightsId;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "权益开始时间")
    @TableField("start_time")
    private Date startTime;

    @Schema(description = "权益结束时间")
    @TableField("end_time")
    private Date endTime;
}
